<style>
    .compartion {}
    .compartion th {
    	font-weight: bold;
    	font-size: 13px;
    }
    .compartion th,
    .compartion td {
        padding: 5px;
        border: 1px solid #CCC;
    }
</style>
<div id="columns">
    <div id="center_column" class="center_column">
        <div id="left_column" class="column">
            <?php get_cart();?>
            <?php get_manufacturer();?>
        </div>

        <div style="float: right; width: 690px;">
            <div class="breadcrumb bordercolor">
                <div class="breadcrumb_inner">
                    <a href="<?php echo base_url();?>" title="return to Home">Trang chủ</a>
                    <span class="navigation-pipe">&gt;</span>
                    <span class="navigation_page"><a href="<?php echo base_url('san-pham');?>">Sản phẩm</a></span>
                    <span class="navigation-pipe">&gt;</span>
                    <span class="navigation_page"><a href="<?php echo base_url('san-pham/so-sanh');?>">So sánh sản phẩm</a></span>
                </div>
            </div>

            <h1>So sánh sản phẩm</h1>

            <table border="1" width="100%" cellpadding="5" cellspacing="0" class="compartion">
                <thead>
                    <tr style="text-align: center; font-weight: bold; font-size: 16px;">
                        <th>Đặc điểm / Sản phẩm</th>
                        <?php foreach($products as $key => $value):?>
                        <th width="250"><a style="font-weight: bold; font-size: 15px; text-decoration: none;" title="<?php echo $value['title'];?>" href="<?php echo base_url('san-pham/'.$value['product_id'].'_'.url_friendly($value['title']));?>.html"><?php echo $value['title'];?></a></th>
                        <?php endforeach;?>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Đặc điểm chính</td>
                        <?php foreach($products as $key => $value):?>
                        <td>
                            <p align="center"><img onerror="ImgError(this);" width="100" height="100" src="<?php echo render_image('uploads/product/'.$value['product_id'].'/'.md5($value['product_id']).'.jpg', 100, 100, '1.1');?>" /></p>
                            <p><?php echo $value['intro'];?></p>
                        </td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Giá</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center">
                            <div style="text-decoration: line-through; font-size: 15px; font-weight: bold; margin-bottom: 5px;"><?php echo @currency_format($value['price_old']);?></div>
                            <div style="color: red;  font-size: 16px; font-weight: bold;"><?php echo @currency_format($value['price_new']);?></div>
                        </td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Chiều rộng</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['width'];?></td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Chiều cao</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['height'];?></td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Chiều sâu</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['depth'];?></td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Cỡ</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['size'];?></td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Trọng lượng</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['weight'];?></td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Màu sắc</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['color'];?></td>
                        <?php endforeach;?>
                    </tr>
                    <tr>
                        <td>Chất liệu</td>
                        <?php foreach($products as $key => $value):?>
                        <td align="center"><?php echo $value['material'];?></td>
                        <?php endforeach;?>
                    </tr>
                </tbody>
            </table>


        </div>
    </div>
</div>